cmake_minimum_required(VERSION 3.16)
project(ff_filter C)

set(CMAKE_C_STANDARD 11)

include_directories(include/)
link_directories(lib/)


file(GLOB files "${CMAKE_CURRENT_SOURCE_DIR}/src/*.c")
foreach (file ${files})

    get_filename_component(name ${file} NAME_WE)
    message("name: ${name}")
    add_executable(${name} ${file})
    target_link_libraries(
            ${name}
            avformat.61
            avcodec.61
            avdevice.61
            avfilter.10
            avutil.59
            postproc.58
            swresample.5
            swscale.8
    )
endforeach ()


